import request from '@/utils/request'
import downloadRequest from '@/utils/downloadRequest'

// 查询列表数据
export function load(data) {
  return request({
    url: '/manage/load',
    method: 'post',
    data
  })
}

// 查询所有项目管理信息
export function listProject() {
  return request({
    url: '/manage/list_project',
    method: 'post'
  })
}

// 批量删除项目信息
export function remove(data) {
  return request({
    url: '/manage/remove_by_id_list',
    method: 'post',
    data
  })
}

// 添加或修改数据
export function saveOrUpdate(data) {
  return request({
    url: '/manage/add_or_edit',
    method: 'post',
    data
  })
}

// 导出excel
export function downExcel(data) {
  return downloadRequest({
    url: '/manage/export',
    method: 'post',
    responseType: 'blob',
    data
  })
}
